<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>奇偶</title>
		<script src="../js/jquery-3.6.3.min.js"></script>
		<script>
			$(function(){
				//odd:奇数
				$("#fruit li:even").css("color","red");
			});
		</script>
	</head>
	<body>
		<ul id="fruit">
			<li>苹果</li>
			<li>桃子</li>
			<li>柿子</li>
			<li>梨子</li>
			<li>李子</li>
			<li>葡萄</li>
			<li>香蕉</li>
			<li>西红柿</li>
			<li>萝卜</li>
		</ul>
	</body>
</html>